package com.mei.springbootdubbo.consumer.service.impl;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.mei.springbootdubbo.consumer.service.MessageConsumerService;
import com.mei.springbootdubbo.provider.Service.MessageProviderService;

@Component
public class MessageConsumerServiceImpl implements MessageConsumerService {

    @Reference(url = "dubbo://0.0.0.0:20880")
    private MessageProviderService messageProviderService;

    public String send(String message) {
        return messageProviderService.send(message);
    }

}